package com.powernode.dataservice.mapper;

import com.powernode.api.model.RechargeRecord;

public interface RechargeRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RechargeRecord record);

    int insertSelective(RechargeRecord record);

    RechargeRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RechargeRecord record);

    int updateByPrimaryKey(RechargeRecord record);

    /**
     * 根据  订单编号 获取  订单
     * @param orderId
     * @return
     */
    RechargeRecord selectByRechargeNo(String orderId);


    /**
     * 修改 订单的 状态
     * @param id
     * @param status  状态
     * @return
     */
    int updateStatus(Integer id, int status);
}